<?php       
class ControllerCommonLogout extends Controller {   
	public function index() { 
    	
		$data['logtime'] = $this->date->getToday();
		$data['userid'] = $this->user->getId();
		$data['event'] = "Đăng nhập thành công";
		$data['detail'] = json_encode($arr);
		$this->document->writelog($data);
		
		$this->user->logout();
		$this->redirect($this->url->https('common/login'));
  	}
}  
?>